package com.innoking.docsys.doc.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * Created by Administrator on 2019/8/15.
 */

@FeignClient(value = "user-service")
public interface UserRestInterface {

    @RequestMapping(value = "/home", method = RequestMethod.POST)
    String getInfo(@RequestBody  String data);


    @RequestMapping(value = "/test", method = RequestMethod.GET)
    String test(@RequestParam("data")String data);

    @RequestMapping(value = "/user/getUserbyId", method = RequestMethod.POST)
    String getUserbyId(@RequestBody  String data);

}
